// SEO相关配置集中管理
export const seoConfig = {
  // 基础SEO信息
  baseUrl: 'https://mini.hello123.com',
  siteName: 'Hello123导航',
  siteDescription: '上网不迷路，Hello123 - 精选优质网站导航，AI工具、搜索引擎、开发工具一应俱全',
  
  // 语言和地区
  language: 'zh-CN',
  locale: 'zh_CN',
  
  // 社交媒体
  social: {
    twitter: '@hello123nav',
    github: 'https://github.com/thehello123/hello123'
  },
  
  // 图片资源
  images: {
    logo: '/hello123.png',
    ogImage: '/hello123.png',
    logoWidth: 512,
    logoHeight: 512,
    ogImageWidth: 1200,
    ogImageHeight: 630
  },
  
  // 搜索引擎优化
  robots: {
    index: true,
    follow: true,
    maxVideoPreview: -1,
    maxImagePreview: 'large',
    maxSnippet: -1
  },
  
  // 结构化数据配置
  organization: {
    name: 'Hello123导航',
    description: '提供精选网站导航服务，涵盖AI工具、搜索引擎、开发工具等多个分类',
    foundingDate: '2024',
    contactType: 'customer service',
    availableLanguage: 'Chinese'
  },
  
  // 搜索功能配置
  searchAction: {
    queryInputName: 'search_term_string',
    urlTemplate: 'https://mini.hello123.com/?search={search_term_string}'
  },
  
  // 关键词配置
  keywords: [
    "导航网站",
    "网址导航", 
    "Hello123",
    "Hello123导航",
    "网站收藏",
    "常用网站",
    "AI工具导航",
    "搜索引擎导航",
    "开发者工具",
    "设计工具",
    "实用工具"
  ],
  
  // 验证码配置
  verification: {
    google: 'your-google-verification-code',
    yandex: 'your-yandex-verification-code',
    yahoo: 'your-yahoo-verification-code',
    baidu: 'your-baidu-verification-code'
  }
}

// 生成动态页面标题
export function generatePageTitle(pageTitle?: string): string {
  if (!pageTitle) {
    return seoConfig.siteName
  }
  return `${pageTitle} - ${seoConfig.siteName}`
}

// 生成动态页面描述
export function generatePageDescription(category?: string, itemCount?: number): string {
  if (category && itemCount) {
    return `${category}分类下精选${itemCount}个优质网站，${seoConfig.siteDescription}`
  }
  return seoConfig.siteDescription
}

// 生成分类页面URL
export function generateCategoryUrl(categoryTitle: string): string {
  return `${seoConfig.baseUrl}#${encodeURIComponent(categoryTitle)}`
} 